package com.ruoyi.system.service.impl;


import com.ruoyi.system.domain.ActivityPictureMapping;
import com.ruoyi.system.mapper.ActivityPictureMappingMapper;
import com.ruoyi.system.service.IActivityPictureMappingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 配图管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-05
 */
@Service
public class ActivityPictureMappingServiceImpl implements IActivityPictureMappingService
{
    @Autowired
    private ActivityPictureMappingMapper activityPictureMappingMapper;

    /**
     * 查询配图管理
     * 
     * @param mappingId 配图管理主键
     * @return 配图管理
     */
    @Override
    public ActivityPictureMapping selectActivityPictureMappingByMappingId(Long mappingId)
    {
        return activityPictureMappingMapper.selectActivityPictureMappingByMappingId(mappingId);
    }

    /**
     * 查询配图管理列表
     * 
     * @param activityPictureMapping 配图管理
     * @return 配图管理
     */
    @Override
    public List<ActivityPictureMapping> selectActivityPictureMappingList(ActivityPictureMapping activityPictureMapping)
    {
        return activityPictureMappingMapper.selectActivityPictureMappingList(activityPictureMapping);
    }

    /**
     * 新增配图管理
     * 
     * @param activityPictureMapping 配图管理
     * @return 结果
     */
    @Override
    public int insertActivityPictureMapping(ActivityPictureMapping activityPictureMapping)
    {
        return activityPictureMappingMapper.insertActivityPictureMapping(activityPictureMapping);
    }


    /**
     * 修改配图管理
     * 
     * @param activityPictureMapping 配图管理
     * @return 结果
     */
    @Override
    public int updateActivityPictureMapping(ActivityPictureMapping activityPictureMapping)
    {
        return activityPictureMappingMapper.updateActivityPictureMapping(activityPictureMapping);
    }

    /**
     * 批量删除配图管理
     * 
     * @param mappingIds 需要删除的配图管理主键
     * @return 结果
     */
    @Override
    public int deleteActivityPictureMappingByMappingIds(Long[] mappingIds)
    {
        return activityPictureMappingMapper.deleteActivityPictureMappingByMappingIds(mappingIds);
    }

    /**
     * 删除配图管理信息
     * 
     * @param mappingId 配图管理主键
     * @return 结果
     */
    @Override
    public int deleteActivityPictureMappingByMappingId(Long mappingId)
    {
        return activityPictureMappingMapper.deleteActivityPictureMappingByMappingId(mappingId);
    }
}
